<?php

// no direct access
defined('_JEXEC') or die;

$user =  &JFactory::getUser();
$lang = &JFactory::getLanguage();

if($lang->getTag() == 'vi-VN')
	
	$style = 'login_'.$lang->getTag();
else 
	$style = 'login_'.$lang->getTag();
	
//echo "<pre>";print_r($myProfile);exit;

if($user->id == 0): ?>
	<li class="login <?php echo $style; ?>" id="login"><a href="javascript:void(null)" ><?php echo JText::_('WMC_TOP_MENU_LOGIN')?></a></li>
	<li class="space" id="space"><a href="#">Space</a></li>
	<li class="signUp" id="signUp"><a href="#"><?php echo JText::_('WMC_TOP_MENU_SIGNUP')?></a></li>
<?php else: ?>
	<li class="logged_in">
			<i class="fa fa-user"></i>
			<a href="<?php echo JRoute::_('index.php?option=com_wrd&view=profile&layout=default&id=1:my-account&Itemid=170')?>">
			<?php echo empty($myProfile->f_name) ? $myProfile->member_id : $myProfile->f_name; ?>
			</a>
	</li>
	
	<li class="logged_in logged_in_point">
		<i class="fa fa-trophy"></i>
		<a href="<?php echo JRoute::_('index.php?option=com_wrd&view=profile&layout=myaccount&id=1:my-account&Itemid=170')?>">
		<?php echo number_format($myPoint,0,'.',','); ?> 
		<font style="vertical-align:top;font-size: 12px; color: #fff;font-weight: normal;"><?php echo JText::_('WMC_TOP_MENU_POINT')?></font>
		</a>
	</li>
	<li class="logged_in log_out">
		<i class="fa fa-sign-out"></i> 
		<a href="<?php echo JRoute::_('index.php?option=com_wrd&task=profile.logout'); ?>">
			<?php echo JText::_('WMC_TOP_MENU_LOGOUT')?>
		</a>
	</li>
<?php endif; ?>